//package com.yonyou.common.taskcenter.config;
//
//import javax.servlet.DispatcherType;
//
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import com.dianping.cat.servlet.CatFilter;
//
//@Configuration
//public class CatFilterConfigure {
//
//	@Bean
//	public FilterRegistrationBean catFilter() {
//		FilterRegistrationBean registration = new FilterRegistrationBean();
//		CatFilter filter = new CatFilter();
//		registration.setFilter(filter);
//		registration.addUrlPatterns("/*");
//		registration.setName("cat-filter");
//		registration.setDispatcherTypes(DispatcherType.REQUEST, DispatcherType.FORWARD);
//		registration.setOrder(1);
//		return registration;
//	}
//}